From 8a7cb5987909b018ad6edcc7625520593df477c9 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Tue, 13 Feb 2001 15:13:54 +0000 Subject: [PATCH] (directory_files_internal): Initialize errno. (toplevel): Include errno.h. --- src/dired.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dired.c b/src/dired.c index 4994241c2cf..f3f13534a87 100644 --- a/src/dired.c +++ b/src/dired.c @@ -27,6 +27,7 @@ Boston, MA 02111-1307, USA. */ #include #include "systime.h" +#include #ifdef VMS #include @@ -208,6 +209,7 @@ directory_files_internal (directory, full, match, nosort, attrs) #endif /* not VMS */ /* Loop reading blocks until EOF or error. */ + errno = 0; while ((dp = readdir (d)) != NULL) { if (DIRENTRY_NONEMPTY (dp)) -- 2.30.2